import kyo.*;

public class Test {
    static public void main(String [] args) {
        Kyo.sleep(1000);
        Kyo.init();
        Kyo.p("w = %d, h = %d\n", Kyo.w(), Kyo.h());
        int key = Kyo.key();
        Kyo.p("key = %d, rand = %d\n", key, Kyo.rand(100));

        while (true) {
            key = Kyo.key();
            if (key == 27) {
                break;
            }
            System.out.println(key);
        }

        Kyo.exit();
    }
}
